#ifndef ConnectWindowRTU_H
#define ConnectWindowRTU_H

#include <QMainWindow>

namespace Ui {
class ConnectWindowRTU;
}

class ConnectWindowRTU : public QMainWindow
{
    Q_OBJECT

public:
    explicit ConnectWindowRTU(QWidget *parent = 0);
    ~ConnectWindowRTU();

    uint8_t slaveAddress(void);

private slots:
    bool eventFilter(QObject *watched, QEvent *event);
    void connectClicked();
    void portChanged(const QString &arg1);
    void parityChanged(int index);

private:
    Ui::ConnectWindowRTU *ui;

signals:
    void initConnect(QString portName, int baudrate, int databits, int stopbits, int parity);
};

#endif // ConnectWindowRTU_H
